package jenry.testbc;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class Gan_TestBC extends Activity {
    Button sendButton = null;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        sendButton =(Button)findViewById(R.id.sendButton);
        sendButton.setOnClickListener(new BoradcastListener());
    }
    
    class BoradcastListener implements OnClickListener{

		@Override
		public void onClick(View v) {
			Intent intent = new Intent();
			intent.setAction(Intent.ACTION_PICK);
			System.out.println("1111");
			Gan_TestBC.this.sendBroadcast(intent);
			
		}
    	
    }
}